package com.bytedance.frameworks.a.c;

import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public abstract class a extends BaseFragment {

    @LayoutRes
    public abstract int getLayoutResId();

    protected void initData(Bundle bundle) {
    }

    public abstract void initView(View view);

    public abstract void b();

    public abstract void c();

    public abstract void d();

    public View onCreateView(LayoutInflater layoutInflater, ViewGroup container, Bundle savedInstanceState) {
        super.onCreateView(layoutInflater, container, savedInstanceState);
        View view = layoutInflater.inflate(this.getLayoutResId(), container, false);
        this.initView(view);
        this.initData(savedInstanceState);
        return view;
    }

    public void onViewCreated(View arg1, @Nullable Bundle arg2) {
        super.onViewCreated(arg1, arg2);
        this.b();
        this.c();
        this.d();
    }
}

